package com.service.question;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.CrossOrigin;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
//开启定时任务
@EnableScheduling
@MapperScan("com.service.question.infra.mapper")
@EnableSwagger2
@CrossOrigin
public class QuestionnaireServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(QuestionnaireServiceApplication.class, args);
    }
}
